/*    */ package com.qmsk.business.info.shopRecommend.controller;
/*    */ 
/*    */ import com.qmsk.business.info.shopRecommend.service.ShopRecommendService;
/*    */ import com.utils.gson.out.GsonEbRst;
/*    */ import com.utils.web.RequestUtils;
/*    */ import com.utils.web.ResponseUtils;
/*    */ import java.util.HashMap;
/*    */ import java.util.Map;
/*    */ import javax.servlet.http.HttpServletRequest;
/*    */ import javax.servlet.http.HttpServletResponse;
/*    */ import org.apache.log4j.Logger;
/*    */ import org.springframework.beans.factory.annotation.Autowired;
/*    */ import org.springframework.stereotype.Controller;
/*    */ import org.springframework.web.bind.annotation.PathVariable;
/*    */ import org.springframework.web.bind.annotation.RequestMapping;
/*    */ 
/*    */ @Controller
/*    */ @RequestMapping({"/recommendShop"})
/*    */ public class ShopRecommendController
/*    */ {
/*    */ 
/*    */   @Autowired
/*    */   private ShopRecommendService service;
/* 29 */   private static final Logger logger = Logger.getLogger(ShopRecommendController.class);
/*    */ 
/*    */   @RequestMapping(value={"find/list/{pageIdx}/{pageSize}"}, method={org.springframework.web.bind.annotation.RequestMethod.GET})
/*    */   public void findRecommendShop(HttpServletRequest request, HttpServletResponse response, @PathVariable("pageIdx") Integer nPageIdx, @PathVariable("pageSize") Short nPageSize)
/*    */   {
/* 45 */     nPageSize = RequestUtils.getRequestValidPageSize(nPageSize);
/*    */     try {
/* 47 */       Map params = new HashMap();
/* 48 */       params.put("operateTypeId", RequestUtils.getString(request, "operateTypeId"));
/*    */ 
/* 51 */       GsonEbRst rst = this.service.findRecommendShopList(params, nPageIdx, nPageSize);
/* 52 */       ResponseUtils.setResponseResult(rst, response);
/*    */     } catch (Exception e) {
/* 54 */       logger.error(e);
/* 55 */       ResponseUtils.setErrorMsgResponse(
/* 56 */         RequestUtils.getFindDataErrorMessage(request), response);
/*    */     }
/*    */   }
/*    */ 
/*    */   @RequestMapping(value={"find/detail/{shopId}"}, method={org.springframework.web.bind.annotation.RequestMethod.GET})
/*    */   public void findRecommendShopDetail(HttpServletRequest request, HttpServletResponse response, @PathVariable("shopId") Long shopId)
/*    */   {
/*    */     try
/*    */     {
/* 72 */       GsonEbRst rst = this.service.findRecommendShopDetail(shopId);
/* 73 */       ResponseUtils.setResponseResult(rst, response);
/*    */     } catch (Exception e) {
/* 75 */       logger.error(e);
/* 76 */       ResponseUtils.setErrorMsgResponse(
/* 77 */         RequestUtils.getFindDataErrorMessage(request), response);
/*    */     }
/*    */   }
/*    */ }

/* Location:           C:\Users\Administrator\Desktop\新建文件夹\WEB-INF\classes\
 * Qualified Name:     com.qmsk.business.info.shopRecommend.controller.ShopRecommendController
 * JD-Core Version:    0.5.3
 */